﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnlineSurvey_Manager.aspx.cs"
    Inherits="Shop_OnlineSurvey_Manager" %>

<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.4 For.NET 2.0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>在线调查内容管理</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0;">
    <form id="form1" runat="server">
    <br />
    <table id="Table1" cellspacing="0" cellpadding="0" width="99%" border="0" align="center">
        <tr>
            <td align="center" colspan="3">
                <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                    CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                    AllowPaging="True" CssClass="gStyle" OnItemDataBound="g_ItemDataBound" OnItemCommand="g_ItemCommand">
                    <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                    <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                    <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                    </HeaderStyle>
                    <ItemStyle CssClass="gItem" BackColor="White" />
                    <Columns>
                        <asp:BoundColumn DataField="id" HeaderText="序号">
                            <ItemStyle Width="30" />
                        </asp:BoundColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="OnlineSurvey_Edit.aspx?ID={0}"
                            DataTextField="Title" HeaderText="调查内容">
                            <ItemStyle Width="600" />
                        </asp:HyperLinkColumn>
                        <asp:BoundColumn DataField="DateTime" HeaderText="开始时间"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Amount" HeaderText="票数"></asp:BoundColumn>
                        <asp:BoundColumn DataField="" HeaderText="状态"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="操作">
                            <ItemTemplate>
                                <ShoveWebUI:ShoveConfirmButton runat="server" ID="btnStart" Text="启用" Width="60"
                                    AlertText="确定要启用该调查项吗？" CommandName="Start" />
                                <ShoveWebUI:ShoveConfirmButton runat="server" ID="btnStop" Text="停用" Width="60" AlertText="确定要停用该调查项吗？"
                                    CommandName="Stop" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="IsShow" Visible="false"></asp:BoundColumn>
                    </Columns>
                    <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                    </PagerStyle>
                </asp:DataGrid>
            </td>
        </tr>  
        <tr>
            <td colspan="3" style="text-align: center;">
                <br />
                <asp:Button ID="btnAdd" runat="server" Text="新增调查项" Width="90px" OnClick="btnAdd_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
